@import "_var";

.container {
  padding: 0 16px;
  width: auto;
}

.list-item {
  display: block;
  padding: 16px;
  margin-bottom: 16px;
  .hd {
    margin-bottom: 12px;
  }
  .bd {
    display: flex;
  }
  .thumb {
    width: 60px;
    margin-right: 12px;
  }
  .meta {
    font-size: 12px;
  }
}

.page-index-m {
  height: 100vh;
  background-image: url(../m/bg.png);
  background-size: cover;
  main {
    padding-top: 30vh;
    .hd {
      margin-bottom: 35px;
      img {
        display: block;
        margin: auto;
        width: 274px;
      }
    }
    form {
      width: 340px;
      height: 40px;
      margin: auto;
      display: flex;
      border-radius: 99px;
      overflow: hidden;

      input {
        flex: 1;
        padding: 0 1.2em;
      }
      button {
        display: flex;
        align-items: center;
        padding: 0 16px;
        background-color: @text-brand;
        color: #fff;
        font-size: 14px;
        img {
          width: 15px;
          margin-right: 4px;
        }
      }
    }
  }
}

.filter {
  position: relative;
  margin-bottom: 20px;
  .fields {
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    position: relative;
    z-index: 997;
    .item {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 45px;
      img {
        margin-left: 0.5em;
        width: 8px;
      }

      &.active {
        color: @text-brand;
      }
      &.inactive {
        color: #999;
      }
    }
  }
  .dropdown {
    position: absolute;
    top: 100%;
    width: 100%;
    background-color: #fff;
    z-index: 999;

    .menu {
      display: none;
      padding: 0 16px;
      border-top: 1px solid #f1f1f1;
      &.visible {
        display: block;
      }
      .item {
        display: flex;
        align-items: center;
        padding: 10px 0 10px 20px;
        border-bottom: 1px solid #f1f1f1;
        &:last-child {
          border-bottom: 0;
        }
        img {
          display: none;
          width: 15px;
          margin-left: auto;
        }
        &.checked {
          img {
            display: block;
          }
        }
      }
    }
  }
  .backdrop {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 990;
    background: rgba(0, 0, 0, 0.7);
  }
}

.page-detail-m {
  padding-top: 16px;
  section.panel {
    margin-bottom: 20px;
    > .hd {
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      .tit {
        font-size: 18px;
        font-weight: bold;
      }
      .more {
        margin-left: auto;
        display: flex;
        align-items: center;
        color: @text-brand;
        font-size: 12px;
        img {
          margin-left: 4px;
          width: 5px;
        }
      }
    }
    > .bd {
      padding: 16px;
      border-radius: 5px;
      overflow: hidden;
      background-color: #fff;
    }
  }

  .main-item {
    .thumb-content {
      display: flex;
      .thumb {
        flex: 0 0 60px;
        margin-right: 10px;
      }
      .content {
        .tag {
          display: inline-block;
          margin-bottom: 8px;
          padding: 3px 8px 2px;
          background-color: #BFA780;
          color: #fff;
          font-size: 11px;
        }
        .tit {
          font-weight: bold;
        }
      }
    }
    .meta-content {
      margin-top: 8px;
      border-top: 1px solid #f1f1f1;
      padding-top: 10px;
      .meta {
        font-size: 12px;
      }
    }
  }

  .images-item {
    overflow-x: auto !important;
    padding-right: 0 !important;

    .images {
      display: flex;
      flex-wrap: nowrap;
      figure {
        flex: 0 0 50px;
        margin-right: 20px;
        figcaption {
          margin-top: 8px;
          font-size: 10px;
          color: #777;
          text-align: center;
        }
      }
    }
  }

  .tabs {
    margin: -16px -16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding: 16px 0px;
    .tab {
      position: relative;
      margin: 0 15px;
      padding: 0 4px;
      cursor: pointer;

      &::after {
        display: none;
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        transform: translateY(5px);
        width: 100%;
        height: 2px;
        background-color: #8a6e49;
      }

      &.active {
        &::after {
          display: block;
        }
      }
    }
  }

  .list-split {
    .list-item {
      margin-bottom: 0;
      padding-left: 0;
      padding-right: 0;
      border-bottom: 1px solid #f1f1f1;
      &:first-child {
        padding-top: 0;
      }
      &:last-child {
        padding-bottom: 0;
        border-bottom: 0;
      }
    }
  }

  ol.list {
    li {
      padding: 12px 0;
      border-bottom: 1px solid #f1f1f1;
      &:first-child {
        padding-top: 0;
      }
      &:last-child {
        padding-bottom: 0;
        border-bottom: 0;
      }
    }
  }
}